package Search;

import java.util.LinkedList
import Client.SearchDB.DataBaseManager

/**
 * Object to take search parameters and return the results
 */
object Controller {
  /**
   * Method to search and return results
   * @param tags the tags to search for
   * @returns the search results
   */
  def search (tags:LinkedList[Parameter]):java.util.List[String]={
    if (tags==null||tags.size==0)
      null;
    else
      DataBaseManager.search(tags)
  }
}